/**
 * 
 */
package t4j.strings;

import java.util.Arrays;
import java.util.regex.Pattern;

/**
 * @author sz
 * 
 *         create time：2012-11-29
 */
public class SplitDemo {
	public static void main(String[] args) {

		String input = "This!!unusual use!!of exclamation!!points";
		
		System.out.println(Arrays.toString(Pattern.compile("!!").split(input)));
		
		System.out.println(Arrays.toString(Pattern.compile("!!").split(input,1)));
	}
}
